import styles from './style.module.scss'
import router from 'next/router'

interface Props {
  page: string,
}

export default function Back({ page }: Props) {

  return (
    <div className={styles.header}>
      <i
        className='iconfont icon-back_light'
        onClick={() => router.back()}>
      </i>
      <span>{page}</span>
    </div>
  )
}

